package com.itheima.advantagesup.mapper;

import com.github.pagehelper.Page;
import com.itheima.advantagesup.dto.YddCateDTO;
import com.itheima.advantagesup.entity.YddCate;
import com.itheima.advantagesup.vo.YddCateVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @program: youdianda-1
 * @className: YddCateMapper
 * @description: TODO
 * @author: xch
 * @createTime: 2023-07-27 10:52
 **/
@Mapper
public interface YddCateMapper {

     Page<YddCate> getListCate(String catename);

    List<YddCateVO> selectAllCate();

    void insertCate(YddCate y);

    Integer getCateByName(YddCateDTO yddCateDTO);

    Integer getCateIdAndByName(YddCateDTO yddCateDTO);

    void updateCate(YddCate y);

    YddCateVO selectOneCate(String id);

    void deleteCate(String id);
}
